{% load i18n %}
<!--本文件貌似已经无效,已经屏蔽了-->
<style>
/*markets*/
.markets {background:#f9f9f9;}
//.markets .container2 {
//    padding-right:0px;padding-left:0px;
//    padding-top:20px;
//}
.markets .one_block .cur{background:white;border:1px solid #FFCC00;height:60px; margin:5px 5px 5px 0}
.markets .one_block .context{background:white;border:1px solid #e6e6e6;height:60px; margin:5px 5px 5px 0}
.markets .context:hover{border:1px solid #FFCC00;}
.markets .one_block .icon{
    float:left;
    margin-top:5px;
    margin-left:2px;
    margin-right:2px;
}

.markets .one_block .text2{
    float:left;
    width:70%;
    height:100%;
}

.markets .one_block .text2 .cname{
    font-size: 12px;
}

.markets .one_block .trade{
    float:left;
    font-size: 20px;
    //font-weight:bold;
    height:50%;
    width:100%;
    padding-top:5px;
}
.markets .one_block .price{
    float:left;
    height:50%;
    width:70%;
    padding-top:5px;
    color: #269b36;
}
.markets .one_block .percent{
    float:right;
    height:50%;
    width:30%;
    padding-top:5px;
    color:#ff007a; //粉红色
}
</style>
<script id="tmp_markets" type="text/html">
    <div class="markets">
        <div class="">
            <div class="col-md-12 f-pz"  >
                <%for (i in markets) {%>
                <%  var info = markets[i]%>
                <%  var key = coin0%>
                <%  var cname = $imports.get_coin_info(info.coin_type).cname %>
                <%if (info.active) {%>
                <a href="/btc/trade?type=<%=info.key%>">
                <%} else {%>
                <a href="#">
                <%} %>
                    <div class="col-md-3 one_block f-pz" >
                        <%if (info.cur) {%>
                            <div class="cur">
                        <%} else {%>
                            <div class="context">
                        <%} %>
                            <span class="icon"> <img src="<%=info.icon_img%>" class="icon" width="40px", height="40px"> </span>
                            <span class="text2">
                                <span class="trade blue">
                                    <b><%=info.name%></b>
                                    <span class="gray-a cname"><%=cname%></span>
                                </span>
                                <span class="price">{% trans '最新' %}:
                                    <i class="<%=info.icon_price%>"></i>
                                    <span id="<%=info.key%>_market_curr_price">0.00</span>
                                    <i id="<%=info.key%>_arrow" class="fa fa-arrow-up"></i>
                                </span>
                                <span class="percent">
                                    <span id="<%=info.key%>_percent">+0.00</span>
                                </span>
                            </span>
                        </div>
                    </div>
                </a>
                <% } %>
            </div>
        </div>
        <br>
    </div>
</script>
<div id="markets"></div>
